package com.lansea.wms.model;


import com.lansea.wms.entity.ValidClass;
import com.lansea.wms.model.base.BaseUserBetweenTime;
import com.lansea.wms.util.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.util.Date;
@Data
@Repository
public class Move extends BaseUserBetweenTime {

    @Min(value = 1, message = "id 非法", groups = {ValidClass.EditForm.class})
    private Integer id;

    private String number;
    private Integer type;

    @Min(value = 1, message = "请选择物料")
    private Integer materialId;
    private Integer inventoryId;
    private Integer inventoryTid;
    private Integer companyId;
    private Integer stockEntryId;
    private Integer stockTransId;

    private BigDecimal planQuantity;

    @DecimalMin(value = "0.01", message = "请填写实际数量")
    private BigDecimal quantity;

    @DateTimeFormat(pattern = DateUtil.DATE_FORMAT)
    private Date happenDate;

    private Integer status;

    private Integer approveUid;

    @DateTimeFormat(pattern = DateUtil.DATE_TIME_FORMAT)
    private Date approveTime;

    private String approveUserName;

    private String rejectRemark;

    private Integer deliveryId;

    private String remark;

    private String materialCode;
    private String materialName;
    private String materialCategoryName;
    private String materialUnitName;

    private Integer warehouseId;
    private Integer reservoirId;
    private Integer stockId;

    private String warehouseName;
    private String reservoirName;
    private String stockName;

    private String warehouseCode;
    private String reservoirCode;
    private String stockCode;

    private Integer warehouseTid;
    private Integer reservoirTid;
    private Integer stockTid;


    private String warehouseNameTo;
    private String reservoirNameTo;
    private String stockNameTo;

    private String warehouseCodeTo;
    private String reservoirCodeTo;
    private String stockCodeTo;

    private String StockEntryNumber;
    private String StockEntryOrderNumber;

    private String stockTransNumber;
    private String stockTransOrderNumber;


}
